package be.destin.harvesting;

import java.io.BufferedWriter;
import java.io.File;
import java.util.List;
import java.util.Map;

import javax.servlet.ServletContext;

import org.apache.log4j.Logger;


public class UsageCrawlerData {
	/** log4j category */
	private static Logger log = Logger.getLogger(UsageCrawlerData.class);

	Map<Integer,List<UsageCrawlerItem>> harvestItems = null;
	File cacheFile = null;
	BufferedWriter cacheWriter = null;
	boolean fatalError = false;
	ServletContext servletContext = null;
	
	void trace (String message) {
		log.error(message);
		if (servletContext != null) {
			servletContext.setAttribute("UsageCrawler", message);
		}
	}
}
